package com.nts.visionworks.business.endpoint.service;

import com.nts.visionworks.business.endpoint.controller.EndPointController;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service("endPointBackgroundService")
public class EndPointBackgroundService
{
	private static final Logger logger = LoggerFactory.getLogger(EndPointController.class);

	@Resource(name = "endPointService")
	private EndPointService _endPointService;

	public void cleanExpiredEndPointScreenshots()
	{
		try
		{
			this._endPointService.cleanExpiredEndPointScreenshots();

			logger.info("만료된 끝점 스크린샷을 정리하였습니다.");
		}
		catch (Exception error)
		{
			logger.error(error.getMessage(), error);
		}
	}
}